//
//  NSObject+Caculator.m
//  RACPrepareProject
//
//  Created by tianchao wu on 2017/7/10.
//  Copyright © 2017年 tianchao wu. All rights reserved.
//

#import "NSObject+Caculator.h"
#import "CaculatorMaker.h"

@implementation NSObject (Caculator)

+ (int)makeCaculators:(void (^)(CaculatorMaker *))caculatorMaker
{
    //1.创建计算管理器
    CaculatorMaker *maker = [[CaculatorMaker alloc] init];
    caculatorMaker(maker);
    return maker.result;
}

@end
